/* SPDX-License-Identifier: GPL-2.0-only */
/*
 */

#ifndef _SOCKET_TCP_H
#define _SOCKET_TCP_H

#include <stdio.h>
#include <stdint.h>

void *net_address_create(const char *ip, int port);

void *tcp_client_open(const char *ip, int port);
int tcp_send(void *conn, const uint8_t *buffer, size_t size, void *user_data);
void tcp_to_serial(void *net, void *serial);
void tcp_to_serial_handle(void *net, void *serial, void *handle, void *user_data);
void *tcp_server_open1(int port, void *handle, void *user_data);
#endif // _SOCKET_TCP_H
